<template>
  <module-card>
    <template #header>警情信息</template>
    <edit-form :model="baseInfo" :fields="baseFields" :editable="false" v-bind="formAttrs"> </edit-form>
  </module-card>
</template>
<script>
import EditForm from '@@/edit-form';
export default {
  name: 'PoliceDetail',
  components: {
    EditForm
  },
  props: {
    baseInfo: {
      type: Object,
      default: () => {
        return {
          bjnr: '',
          bjr: '',
          bjsj: '',
          bjdh: '',
          afdz: ''
        };
      }
    },
    formAttrs: {
      type: Object,
      default: () => {
        return {
          col: 12,
          labelWidth: 'calc(7em + 12px)'
        };
      }
    },
    baseFields: {
      type: Array,
      default: () => {
        return [
          { prop: 'bjnr', label: '报警内容', col: 16 },
          { prop: 'bjsj', label: '报警时间' },
          { prop: 'bjr', label: '报警人' },
          { prop: 'bjdh', label: '报警电话' },
          { prop: 'afdz', label: '案发地址' }
        ];
      }
    }
  },
  data() {
    return {};
  }
};
</script>
